package org.blogwu.learn.temp.string;

public class ParamPassing {

    private static int intStatic = 222;

    private static String stringStatic = "old string";
    private static StringBuilder stringBuilder = new StringBuilder("old stringBuilder");

    public static void method(StringBuilder stringBuilderStaticl, StringBuilder stringBuilderStatic2) {
        stringBuilderStaticl.append(".method.first-");
        stringBuilderStatic2.append(".method.second-");
        stringBuilderStaticl = new StringBuilder("new StringBuilder");
        stringBuilderStaticl.append("new methods s  append");
    }

    public static void method(int intStatic) {
        intStatic = 777;
    }

    public static void method() {
        intStatic = 888;

    }

    public static void method(String stringStatic) {
        stringStatic = "new string";
    }


    public static void main(String[] args) {
        method(intStatic);
        method(stringStatic);
        method(stringBuilder, stringBuilder);
        System.out.println(intStatic);
        method();
        System.out.println(intStatic);
        System.out.println(stringStatic);
        System.out.println(stringBuilder);
    }
}